-------------------------------------------------------------------------------------
-- -*- coding: utf-8 -*-
--
-- @author:   zxf
-- @email:    07291@qq.com
-- @date:     2024/8/20
-- @module:   RANDOM_MAIN_TARGET_WEIGHT_CONFIG
-- @describe: 随机权重配置
-- @version:  v1.0
--

-------------------------------------------------------------------------------------

local import = import
---@type MAIN_TARGET_TYPE_CONFIG
local MAIN_TARGET_TYPE_CONFIG = import('bt/custom_node/enum_type_cfg/MAIN_TARGET_TYPE_CONFIG')
local MAIN_TARGET_TYPE = MAIN_TARGET_TYPE_CONFIG.TYPE

-- 主目标权重
-- { mainTarget = MAIN_TARGET_TYPE.MAIN_TASK, randomWeight = 100 } 单个配置
-- { arr = { { mainTarget = MAIN_TARGET_TYPE.MAIN_TASK }, { mainTarget = MAIN_TARGET_TYPE.HUNT } }, randomWeight = 100 } 多个配置
---@class RANDOM_MAIN_TARGET_WEIGHT_CONFIG
local RANDOM_MAIN_TARGET_WEIGHT_CONFIG = {
    { mainTarget = MAIN_TARGET_TYPE.TEST, randomWeight = 100 },
    {
        arr = {
            { mainTarget = MAIN_TARGET_TYPE.TEST, data = { mainName = "测试" } },
            { mainTarget = MAIN_TARGET_TYPE.TEST2 },
        },
        randomWeight = 50
    },
    {
        arr = {
            { mainTarget = MAIN_TARGET_TYPE.TEST2, data = { mainName = "测试2" } },
            { mainTarget = MAIN_TARGET_TYPE.TEST },
        },
        randomWeight = 50
    },
}
return RANDOM_MAIN_TARGET_WEIGHT_CONFIG
